-
Notifications
You must be signed in to change notification settings - Fork 0
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
feat: modal with settings profile #25
base: main
Are you sure you want to change the base?
Conversation
Навзания папок и scss файлов с маленькой буквы |
.avatar { | ||
width: 150px; | ||
height: 150px; | ||
border-radius: 120px; |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
50%
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
++
import {Button, Input} from "antd"; | ||
|
||
|
||
export const AboutMySelf = () => { |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Мы компоненты создаём как именованные функции, чтобы было проще дебажить
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
++
src="https://s3-alpha-sig.figma.com/img/51fb/3b5b/0c423f431e973462f167a024bb6c3624?Expires=1740355200&Key-Pair-Id=APKAQ4GOSFWCW27IBOMQ&Signature=n13ooca0X0BnGvUK837M-1OjQ040scQ4DaFQL67NIhsiug1fHgvUxHbHvXgyBKi8jF2MX~EdWj602TGm2ZXOaYulnYV3VtJiXZF0binVakLJbEIlUzhTRc2QdcVobohvTXi5S-4BNBMYRlpMiaeYIgnJKplk5fNX0XfyZC~e61ivaYcLlUitFYOu1zjiPDkeym6vgqKSXAZr5akXSZBvET7J3byEQeRishMZidia9OP2tz-PoF3IXodwzd4wqnj7eZQrDL4L5jjKGTzBlRnjXoZcqnhNUFp6U6elyziPfB01Dhds5dGFNctW7rPIYzD2t5JKozaUXZ2U8NPbJ7T7ow__" | ||
alt="avatar" className={styles.avatar}/> | ||
<div> | ||
<Button danger type="link">Удалить фото</Button> |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Надо прикрутить i18n ко всем текстам
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
++
</div> | ||
</div> | ||
<form className={styles.form}> | ||
<div className={styles.formBlock}> |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Как будто избыточний див и можно стили в форм загнать, нет?
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
++
return ( | ||
<div className={styles.settingsBlock}> | ||
<div className={styles.settingsItem}> | ||
<div className={styles.settingsItemBlockOfTitle}> |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Вроде как избыточный класс, если сверстать дивами а не спан
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
это не понял
src/pages/profile/Profile.tsx
Outdated
body: styles.containerModal, | ||
}} | ||
title={ | ||
<div style={{marginTop: "-6px", marginBottom: "20px"}}> |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
в стили
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
++
src/pages/profile/Profile.tsx
Outdated
</div> | ||
} | ||
> | ||
{activeSection === 'О себе' ? ( |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Так не надо, нужен независимый от текста уникальный код, на английском языке
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
++
@@ -0,0 +1,13 @@ | |||
.modal { | |||
min-height: 603px; |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
в чём прикол мин, макс?
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
++
</div> | ||
<div> | ||
<span className={styles.titleOfInput}>Расскажите о себе</span> | ||
<Input.TextArea rows={4} autoSize={{minRows: 5, maxRows: 5}}/> |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Здесь тоже не ясно, а почему сразу rows={5} не установить? и autoSize=false?
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
так я пробовал, autosize не работает
<> | ||
<div className={styles.blockAvatar}> | ||
<img | ||
src="https://s3-alpha-sig.figma.com/img/51fb/3b5b/0c423f431e973462f167a024bb6c3624?Expires=1740355200&Key-Pair-Id=APKAQ4GOSFWCW27IBOMQ&Signature=n13ooca0X0BnGvUK837M-1OjQ040scQ4DaFQL67NIhsiug1fHgvUxHbHvXgyBKi8jF2MX~EdWj602TGm2ZXOaYulnYV3VtJiXZF0binVakLJbEIlUzhTRc2QdcVobohvTXi5S-4BNBMYRlpMiaeYIgnJKplk5fNX0XfyZC~e61ivaYcLlUitFYOu1zjiPDkeym6vgqKSXAZr5akXSZBvET7J3byEQeRishMZidia9OP2tz-PoF3IXodwzd4wqnj7eZQrDL4L5jjKGTzBlRnjXoZcqnhNUFp6U6elyziPfB01Dhds5dGFNctW7rPIYzD2t5JKozaUXZ2U8NPbJ7T7ow__" |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Используй картинку из info и вынеси её на уровень выше
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
++
<span className={styles.titleOfInput}>Имя и имя пользователя</span> | ||
<div className={styles.blockOfNameAndLoginInput}> | ||
<Input type="text" placeholder="Имя"/> | ||
<Input type="text" placeholder="@Юзернейм"/> |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
type="text" избыточен
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
++
padding: 20px; | ||
} | ||
|
||
.headerModal { |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Не используемый класс
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
++
No description provided.